package modelo.dao;

import interfaces.Factory;
import modelo.dao.jdbc.JDBCFactory;
import modelo.dao.jpa.JPAFactory;

public class FactoryDatabase {
	public static Factory createFactory(String tag){
		if(tag.equals("JDBC")){
			return new JDBCFactory();
		}else if(tag.equals("JPA")){
			return new JPAFactory();
		}
		return null;
	}
}
